#if($msg)
<script>
alert('$!msg');
</script>
#end
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文章列表</title>
<link href="/include/manage/images/main/style.css" rel="stylesheet" type="text/css" />
<link href="/include/manage/dialog/asyncbox.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#spanButtonPlaceHolder{
	width:52px;
	height:20px;
	z-index:100;
}
#move{margin:8px;}
</style>
<script language="javascript" src="/include/manage/js/jquery.js"></script>
<script language="javascript">
var tid='$!tid';
function checkAll() {
	if($('#selAll').attr("checked")){
		$('input[type=checkbox]').attr('checked', $('#selAll').attr("checked"));
	}else{
		$('input[type=checkbox]').attr('checked',false);
	}
}

function searchNews(){
	var keywords=$('#key_words').val();
	if(keywords.length>0){
		location.href='/manage_relative.ad?parameter=list&key_words='+keywords+'&page=$!frontPage&tid=$!tid';
	}
}
</script>
#if($tid)
<script language="javascript">
<!--
jQuery.ajaxSetup ({
	cache: false
});
-->
</script>
#end
</head>
<body>
<form id="delform" name="delform" action="/manage_news.ad" method="post">
	<input type="hidden" name="parameter" value="delete" />
    <input type="hidden" id="deleteid" name="id" value="" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="/include/manage/images/main/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="/include/manage/images/main/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="30%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="/include/manage/images/main/tb.gif" width="16" height="16" /></div></td>
                <td width="95%"><span class="STYLE3">当前位置</span>：[相关文章]-[#if($thisType)$!thisType.name#else文章列表#end]</td>
              </tr>
            </table></td>
            <td width="70%"><table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
								<td width="135"><table width="95%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                  	<td>
                    	搜索:
                    </td>
                    <td>
                    	<input id="key_words" type="text" name="key_words" value="$!key_words" size="8" style="height:16px;border:1px solid #999999;" /></td>
                    <td><a href="javascript:searchNews()"><img src="/include/manage/images/main/search.gif" /></a></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="/include/manage/images/main/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="/include/manage/images/main/tab_12.gif">&nbsp;</td>
        <td><table id="list" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
          <tr class="nodrop nodrag">
            <td width="24" height="22" background="/include/manage/images/main/bg.gif"><div align="center">
              <input type="checkbox" name="selAll" id="selAll" onClick="checkAll()" />
            </div></td>
            <td width="32" background="/include/manage/images/main/bg.gif"><div align="center"><label for="selAll">全选</label></div></td>
            <td width="*" background="/include/manage/images/main/bg.gif"><div align="center">文章标题</div></td>
            <td width="60" background="/include/manage/images/main/bg.gif"><div align="center">发布人</div></td>
            <td width="120" background="/include/manage/images/main/bg.gif"><div align="center">发布时间</div></td>
            #if($thisType.tree)
            #if($thisType.tree.length()>0)
            <td width="80" background="/include/manage/images/main/bg.gif"><div align="center">附加树</div></td>
            #end
            #end
            <td width="160" background="/include/manage/images/main/bg.gif"><div align="center">基本操作</div></td>
          </tr>
#foreach ($news in $newsList)
          <tr id="$!news.id">
            <td height="20" bgcolor="#FFFFFF"><div align="center">
              <input type="checkbox" name="sel_id" value="$!news.id" />
            </div></td>
            <td class="dragHandle" bgcolor="#FFFFFF" align="center">
            #if($news.fileType)
            	<img src="/include/system/filetype/$news.fileType.toLowerCase()" />
            #else
            	<img src="/include/system/filetype/html.gif" />
            #end
            </td>
            <td bgcolor="#FFFFFF"><a href="/manage_news.ad?parameter=edit&id=$!news.id" title="$!news.title">$!news.getTitle(30)</a></td>
            <td bgcolor="#FFFFFF">$!news.username</td>
            <td bgcolor="#FFFFFF">$!news.date</td>
            #if($thisType.tree)
            #if($thisType.tree.length()>0)
            <td bgcolor="#FFFFFF">
            	[<a href="/manage_relative.ad?parameter=tree&tree_id=$thisType.tree&treenews=$!news.id">进入编辑</a>]
            </td>
            #end
            #end
            <td bgcolor="#FFFFFF"><a href="/manage_relative.ad?parameter=add&newsid=$!newsid&relid=$!news.id" target="config">选择</a></td>
          </tr>
#end
        </table></td>
        <td width="8" background="/include/manage/images/main/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" background="/include/manage/images/main/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="/include/manage/images/main/tab_18.gif" width="12" height="35" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="STYLE4">&nbsp;&nbsp;共有 $!rows 条记录，当前第 $!currentPage/$!totalPage 页</td>
            <td><table border="0" align="right" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="40"><a href="/manage_relative.ad?parameter=page&newsid=$!newsid&page=1&tid=$!tid&treenews=$!treenews&keywords=$!keywords"><img src="/include/manage/images/main/first.gif" width="37" height="15" /></a></td>
                  <td width="45">#if($frontPage<1)<img src="/include/manage/images/main/back-no.gif" width="43" height="15" />#else<a href="/manage_relative.ad?parameter=page&newsid=$!newsid&page=$!frontPage&tid=$!tid&treenews=$!treenews&key_words=$!key_words"><img src="/include/manage/images/main/back.gif" width="43" height="15" /></a>#end</td>
                  <td width="45">#if($nextPage>$totalPage)<img src="/include/manage/images/main/next-no.gif" width="43" height="15" />#else<a href="/manage_relative.ad?parameter=page&newsid=$!newsid&page=$!nextPage&tid=$!tid&treenews=$!treenews&key_words=$!key_words"><img src="/include/manage/images/main/next.gif" width="43" height="15" /></a>#end</td>
                  <td width="40"><a href="/manage_relative.ad?parameter=page&newsid=$!newsid&page=$!totalPage&tid=$!tid&treenews=$!treenews&key_words=$!key_words"><img src="/include/manage/images/main/last.gif" width="37" height="15" /></a></td>
                  <td width="100"><div align="center"><span>转到第
                    <input id="goPage" name="goPage" type="text" size="4" style="width:20px;height:16px;border:1px solid #999999;" /> 
                    页 </span></div></td>
                  <td width="40"><a href="javascript:location.href='/manage_relative.ad?parameter=page&newsid=$!newsid&tid=$!tid&treenews=$!treenews&key_words=$!key_words&page='+document.getElementById('goPage').value"><img src="/include/manage/images/main/go.gif" width="37" height="15" /></a></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="/include/manage/images/main/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
</html>